package com.ruoyi.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.SysHangye;

import java.util.List;
import java.util.Map;

/**
 * 行业管理Service接口
 *
 * @author shuyan
 * @date 2020-12-30
 */
public interface ISysHangyeService extends IService<SysHangye> {

    /**
     * 查询列表
     */
    List<SysHangye> queryList(SysHangye sysHangye);

    /**
     * 从缓存中获取
     */
    List<SysHangye> listAllWithCache();

    boolean clearCache();

    Map<Integer, SysHangye> getEachLevelByCode(String code);

    SysHangye getByCode(String code);

    boolean syncCate();
}
